package com.zyk.scaffold.tcp.server.handler;

import com.zyk.scaffold.tcp.dto.SystemMessageDTO;
import com.zyk.scaffold.tcp.proto3.MessageBuf;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Component;

@Component
public class PullMsgHandler implements MsgHandler<MessageBuf.JMTransfer.MsgType> {

    @Override
    public MessageBuf.JMTransfer.MsgType getRequestType() {
        return MessageBuf.JMTransfer.MsgType.PULL;
    }

    @Override
    public Boolean handler(ChannelHandlerContext ctx, MessageBuf.JMTransfer message, SystemMessageDTO sMsg) {
        // TODO 客户端拉取数据
        return Boolean.TRUE;
    }
}
